package tcu.yuyp.repository;

import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import tcu.yuyp.pojo.Invitation;


@Transactional
@Repository
//对应的数据层的接口,继承自CrudRepository<对应实体类,实体类主键类型>
public interface InvitationsRepository extends CrudRepository<Invitation,Integer> {
    //直接使用CrudRepository接口听过的方法即可
}
